<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本插值</title>
    <script src="../../../vue-2.0.js"></script>
<!--    <script src="../../../vue.js"></script>-->
<!--    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>-->
</head>
<body>
<div id="box">
    <h1>
        {{name}}
    </h1>
    <h2 v-once=" name">
        {{name}}
    </h2>

    <span v-once='name'>{{name}}</span>


</div>

<script>
        var vm = new Vue({
            el:'#box',
            data:{
                'name':'zhanghao',
            }
        })
    </script>

</body>
</html>